[#include "/pages/root/tigris-macros.ftl" /]
[@startPage pageTitle="新建站点"/]

	[@menuPage name="Root" /]
	<div class="rrcc">
		<div class="contnet"></div>
		<div class="right" style="display: block;">
			<div class="right01"><img src=""> 后台管理 &gt; ${pageTitle}</div>
			<div style="margin-bottom:1px;" class="contenttitle radiusbottom0">
		    	<h2 class="form" id="vertical"><span>站点列表</span></h2>
		    </div>
		    [@warningMessage /]
			[@infoMessage /]
			<div>
				[@c.url value="/root/Site_list.action" var="backurl" /]
				<form action="[@c.url value='/root/Site_save.action'/]?backurl=${action.urlEncode(backurl)}" method="post" class="stdform stdform2">
					<p>
			        	<label>名称：</label>
			            <span class="field"><input class="smallinput" type="text" placeholder="请输入站点名称" name="site.name" value="${(site.name)!''}"/></span>
			        </p>
			        <p>
			        	<label>简称：</label>
			            <span class="field"><input type="text" placeholder="请输入站点简称" name="site.shortName" value="${(site.shortName)!''}"/></span>
			        </p>
			        <p>
			        	<label>站点类型：</label>
			            <span class="field">
			            	<select name="site.siteGroupId">
								[#list siteGroupList as group]
									<option value="${group.type}" >${group.name}</option>
								[/#list]
							</select></span>
			        </p>
			        <p>
			        	<label>站点域名：<small>站点在部署的固定域名</small></label>
			            <span class="field"><input type="text" placeholder="请输入站点域名" name="site.domain" value="${(site.domain)!''}"/></span>
			        </p>
			        <p>
			        	<label>域名别名：</label>
			            <span class="field"><input type="text" placeholder="请输入域名别名" name="site.domainAlias" value="${(site.domainAlias)!''}"/></span>
			        </p>
			        <p>
			        	<label>根域名：</label>
			            <span class="field"><input type="text" placeholder="请输入根域名,如果没有根域名,则可输入域名" name="site.baseDomain" value="${(site.baseDomain)!''}"/></span>
			        </p>
			        <p>
			        	<label>资源域名：</label>
			            <span class="field"><input type="text" placeholder="请输入资源路径" name="site.resDomain" value="${(site.resDomain)!'resource_cms'}"/></span>
			        </p>
			        <p>
			        	<label>资源路径：<small>模板、图片、样式表、js脚本等文件</small></label>
			            <span class="field"><input type="text" placeholder="请输入资源路径" name="site.resPath" value="${(site.resPath)!'www_resource'}"/></span>
			        </p>
			        <p>
			        	<label>系统类型：</label>
			            <span class="field">
			            	<select name="site.type">
								[#list typeList as type]
									<option [#if (site.type)?? && type[1] == site.type]selected="selected"[/#if]  value="${type[1]}" >${type[0]}</option>
								[/#list]
							</select></span>
			        </p>
			        <p>
			        	<label>URL后缀：<small>项目创建后,请不要修改后缀</small></label>
			            <span class="field"><input type="text" placeholder="请输入域名别名" name="site.suffix" value="${(site.suffix)!''}"/></span>
			        </p>
			        <p>
			        	<label>cookie识别码：</label>
			            <span class="field"><input type="text" placeholder="站点保存COOKIE的KEY" name="site.cookieKey" value="${(site.cookieKey)!''}"/></span>
			        </p>
			        <p>
			        	<label>公司名称：</label>
			            <span class="field"><input type="text" placeholder="请输入域名别名" name="site.company" value="${(site.company)!''}"/></span>
			        </p>
			        <p>
			        	<label>电话：</label>
			            <span class="field"><input type="text" placeholder="请输入电话号码" name="site.ownerTel" value="${(site.ownerTel)!''}"/></span>
			        </p>
					<p>
			        	<label>手机：</label>
			            <span class="field"><input type="text" placeholder="请输入手机号码" name="site.ownerMobile" value="${(site.ownerMobile)!''}"/></span>
			        </p>
			        <p>
			        	<label>站长邮箱：</label>
			            <span class="field"><input type="text" placeholder="请输入站长邮箱" name="site.ownerEmail" value="${(site.ownerEmail)!''}"/></span>
			        </p>
			        <p>
			        	<label>版权信息：</label>
			            <span class="field">
			            	<textarea class="longinput" rows="5" cols="80" style="height: 86px;" name="site.copyright" rows="40" >${(site.copyright)!''}</textarea>
			            </span>
			        </p>
			        <p>
			        	<label>备案号：</label>
			            <span class="field">
			            	<textarea class="longinput" rows="5" cols="80" style="height: 86px;" name="site.recordCode" rows="40" >${(site.recordCode)!''}</textarea>
			            </span>
			        </p>
				    <p class="stdformbutton">
				      	<input class="submit" value="提&nbsp;&nbsp;交" type="submit" />
				        <input type="reset" value="重&nbsp;&nbsp;置" class="reset radius2" />
				    </p>
				</form> 
			</div>
		</div>
	</div>
[@endPage/]
